package com.IODemo;

import java.io.*;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/06/27/15:18
 * @Description:
 * @Target:
 */
public class test {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        try {
            File file = new File("C:\\Users\\lenovo\\Desktop\\公司业务总结\\sqlTable\\LIST.txt");
            InputStreamReader inputReader = new InputStreamReader(new FileInputStream(file),"UTF-8");
            BufferedReader bf = new BufferedReader(inputReader);
            // 按行读取字符串
            String str;

            while ((str = bf.readLine()) != null) {
                String[] split = str.split("\\\\");
                System.out.println(split[split.length-1]);
                
                arrayList.add(str);
            }
            bf.close();
            inputReader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        
    }
}
